using System;
using System.Collections.Generic;
using System.Linq;
using Granite.Eventing;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Specialized;

namespace Granite.Commons.Tests.Eventing
{
	[TestClass]
	public class CollectionChangedListenerTests
	{
		[TestMethod]
		public void CollectionChangedListener_Test1()
		{
			try
			{
				var listener = new Listener<NotifyCollectionChangedEventArgs>(null);
				Assert.Fail("Expected an ArgumentNullException");
			}
			catch (ArgumentNullException ex)
			{
				Assert.AreEqual("eventHandler", ex.ParamName, "Parameter name is wrong");
			}
		}
	}
}
